﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Tradex;

namespace Tradex.Connectivity {
    
    /// <summary>
    /// /The IConnectorHostTarget interface implements an interface the ConnectorControlApi object exposes
    /// for the ConnectorHost to call back with asynchronous updates and data.
    /// </summary>
    public interface IConnectorHostTarget {

        /// <summary>
        /// Updates the information about the connection status. This is considered important out of band information,
        /// and thus not transmitted via message queue.
        /// </summary>
        /// <param name="status"></param>
        void SetConnectionStatus(ConnectionStatus status);

        /// <summary>
        /// Submit a message for transfer upstream from the connector.
        /// </summary>
        /// <param name="message"></param>
        void SubmitMessage(Tradex.Messages.Message message);

    }

}
